package com.skysz.jdk.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class PaymentHandler implements InvocationHandler {

	@Override
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable {
		System.out.println("begin " +method.getName());
		Object obj = method.invoke(proxy, args);
		System.out.println("end " + method.getName());
		return obj;
	}

}
